package com.parent.elasticsearch.old.result;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.parent.elasticsearch.old.es.Total;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author yan
 * @date 2023/7/20 0020 22:45
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Hits<T> implements Serializable {

    private static final long serialVersionUID = 1654984668093097824L;
    /**
     * 查询总数
     */
    @JsonProperty(value = "total", required = true)
    private Total total;
    /**
     * 最大分数
     */
    @JsonProperty(value = "max_score", required = true)
    private Double maxScore;
    @JsonProperty(value = "hits", required = true)
    private List<HitsNew<T>> hits;


}